package com.lzj.server.constant.enums;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum SystemEnum {
    // ================== 角色编号 ==================
    ROLE(101, "角色"),
    PERMISSION(102, "权限"),
    NORMAL(0, "正常"), DISABLE(1, "禁用"),

    // ================== 性别 ==================
    MALE(201, "男"), FEMALE(202, "女"), UNKNOWN(203, "未知"), THEME(301, "这个人很懒，什么都没写~ ~ ~");

    //获取权限码
    private final int code;
    //获取权名称
    private final String desc;

    public int code() {
        return code;
    }

    public String desc() {
        return desc;
    }

}
